package com.lwj.mapper.system;

import com.lwj.dto.ListDto;
import com.lwj.dto.system.DefListDto;
import com.lwj.model.system.DictionaryDef;
import com.lwj.vo.system.DictionaryDefVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictionaryDefMapper {
    int deleteByPrimaryKey(String defId);

    int insert(DictionaryDef record);

    int insertSelective(DictionaryDef record);

    DictionaryDef selectByPrimaryKey(String defId);

    int updateByPrimaryKeySelective(DictionaryDef record);

    int updateByPrimaryKey(DictionaryDef record);

    List<DictionaryDefVo> defList(@Param("dto") DefListDto dto);

    List<DictionaryDefVo> getByCategoryId(String categoryId);

    List<DictionaryDefVo> getByCategoryCode(@Param("categoryCode")String categoryCode);
}
